package sg.edu.nus.iss.club;

public class Club {
	
	private int membershipNumber;
	Member mArray[];
	
	public Club(int arraySize) {
		membershipNumber= 0;
		mArray=new Member[arraySize];
	}
	
	public Member addMember(String surName,String fName,String secName){
		
          membershipNumber+=1;
		  Member m= new Member(surName,fName,secName,membershipNumber);
		  mArray[membershipNumber-1] =m;
		return  m;
	}
	
	public void show() {
		
		for(int i=0;i< mArray.length;i++ ){
			System.out.println(mArray[i].show());			
		}	
		
	}
	

}
